package com.swan.mybatis.config;

import com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration;
import com.swan.mybatis.mapper.mapper.BaseMapper;
import org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/** springboot3 需要手动导入 PageHelperAutoConfiguration, 否则不生效。
 * @author zongf
 * @since 2021-07-13
 */
@Import({SwanSqlSessionFactory.class, BaseMapper.class, PageHelperAutoConfiguration.class})
@EnableConfigurationProperties({SwanMybatisProperties.class})
@Configuration(proxyBeanMethods = false)
@AutoConfigureBefore(MybatisAutoConfiguration.class)
public class SwanMybatisAutoConfig {



}
